package dev.hitools.utils.kts

import android.app.Dialog
import androidx.viewbinding.ViewBinding
import dev.hitools.utils.kts.ContextExt.inflater
import dev.hitools.utils.kts.binding.DialogBinding


object DialogExt {
    /**
     * 方便获取ViewDataBinding
     */
    inline fun <reified T : ViewBinding> Dialog.binding() = DialogBinding(T::class.java, context.inflater)
}